package com.hengfoxwolf.jnidemo
import android.os.Bundle
import android.view.View
import com.hengfoxwolf.jnidemo.databinding.ActivityLoadingBinding

class LoadingActivity : BaseActivity<ActivityLoadingBinding>(ActivityLoadingBinding::inflate), View.OnClickListener {

    override fun init(savedInstanceState: Bundle?) {

        mBinding.view1.setOnClickListener(this)
        mBinding.view2.setOnClickListener(this)
        mBinding.view3.setOnClickListener(this)
        mBinding.view4.setOnClickListener(this)
        mBinding.view5.setOnClickListener(this)
        mBinding.view6.setOnClickListener(this)
        mBinding.view7.setOnClickListener(this)
        mBinding.view8.setOnClickListener(this)
        mBinding.view9.setOnClickListener(this)
        mBinding.view10.setOnClickListener(this)

    }

    override fun onClick(view: View?) {
        when (view?.id) {
            R.id.view1 -> {
                startActivity<MainActivity>()
            }
            R.id.view2 -> {
                startActivity<FmodUseActivity>()
            }
            R.id.view3 -> {
                startActivity<CPlusPlusLearnActivity>()
            }
            R.id.view4 -> {

            }
            R.id.view5 -> {

            }
            R.id.view6 -> {

            }
            R.id.view7 -> {

            }
            R.id.view8 -> {

            }
            R.id.view9 -> {

            }
            R.id.view10 -> {

            }
        }
    }
}